package speed2010.andreza.vspeed.gui;

import java.awt.Image;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.Icon;
import javax.swing.ImageIcon;

public final class GUIConstants {

	private GUIConstants() {
	}

	public static ISPEEDGUI GUI_INSTANCE;

	public static final String MENU_PADDING = "    ";
	public static final String TITLE = "SPEED - Semantic Peer Data Management System";

	public static final String MENU_HOME = "Home" + MENU_PADDING;
	public static final String MENU_HOME_PEERS = "Participating peers";
	public static final String MENU_HOME_EXIT = "Exit";

	public static final String MENU_QUERY = "Query" + MENU_PADDING;
	public static final String MENU_QUERY_VISUAL = "Visual query";
	public static final String MENU_QUERY_SPARQL = "SparQL query";

	public static final String MENU_NETWORK = "Network" + MENU_PADDING;
	public static final String MENU_NETWORK_VIEW = "View network";
	public static final String MENU_NETWORK_JOIN = "Join network";
	public static final String MENU_NETWORK_CHOOSE = "Choose peer ontology";

	public static final String MENU_DOCUMENTATION = "Documentation" + MENU_PADDING;
	public static final String MENU_DOCUMENTATION_USERGUIDE = "User guide";
	public static final String MENU_DOCUMENTATION_JAVADOC = "Javadoc";
	public static final String MENU_DOCUMENTATION_SYSTEM = "The system";

	public static class Images {

		public static Image MAIN_ICON = null;
		public static Icon IMAGE_SPEED = null;
		public static Icon ICON_HOME = null;
		public static Icon ICON_QUERY = null;
		public static Icon ICON_NETWORK = null;
		public static Icon ICON_DOCUMENTATION = null;
		public static Icon ACCEPT_ICON = null;
		public static Icon REJECT_ICON = null;
		public static Icon INFO_ICON = null;

		static {
			try {
				MAIN_ICON = ImageIO.read(ISPEEDGUI.class.getResourceAsStream("/images/icone.png"));
				IMAGE_SPEED = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResourceAsStream("/images/speed.png")));
				ICON_HOME = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResource("/images/menu-home.png")));
				ICON_QUERY = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResource("/images/menu-query.png")));
				ICON_NETWORK = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResource("/images/menu-network.png")));
				ICON_DOCUMENTATION = new ImageIcon(ImageIO.read(ISPEEDGUI.class
						.getResource("/images/menu-documentation.png")));
				ACCEPT_ICON = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResource("/images/accept-icon.png")));
				REJECT_ICON = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResource("/images/reject-icon.png")));
				INFO_ICON = new ImageIcon(ImageIO.read(ISPEEDGUI.class.getResource("/images/info-icon.png")));

			} catch (final IOException e) {
				e.printStackTrace();
			}
		}
	}

}
